﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FamousNarrativePaper.aspx.cs" Inherits="App.FamousRegion_FamousNarrativePaper" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/UserControl/Top.ascx" TagPrefix="UC" TagName="top" %>
<%@ Register Src="~/UserControl/Footer.ascx" TagPrefix="UC" TagName="footer" %>
<%@ Register Src="~/UserControl/lunboPic.ascx" TagPrefix="UC" TagName="lb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>上善若水 --不言、无为、自强不息</title>
    <link type="text/css" href="../Styles/layout.css" rel="Stylesheet" />
    <link type="text/css" href="../Styles/theme1.css" rel="Stylesheet" />
    <link type="text/css" href="../Styles/style.css" rel="Stylesheet" />
    <script type="text/javascript" src="../Scripts/carouFredSel-6.2.1/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="../Scripts/carouFredSel-6.2.1/jquery.carouFredSel-6.2.1.js"></script>
    <script type="text/javascript" src="../Scripts/editor/kindeditor.js"></script>
    <style>
        .shell2
        {
            background: no-repeat 4px 5px;
            border: 1px solid #aaa;
            width: 260px;
            padding: 3px 2px 2px 20px;
        }
        .view
        {
            margin: 10px auto;
            min-height: 300px;
            padding: 0 10px;
            width: 95%;
        }
        
        .view .detailT
        {
            color: rgb(0, 0, 0);
            font-size: 22px;
            font-weight: bold;
            margin: 20px auto 10px;
            text-align: center;
        }
        
        .view .data
        {
            border-bottom: 1px solid rgb(204, 204, 204);
            line-height: 17px;
            padding-bottom: 5px;
            text-align: center;
        }
        
        
        .view .content
        {
            color: rgb(0, 0, 0);
            font-size: 14px;
            line-height: 24px;
            margin-top: 0;
            padding-top: 10px;
            text-align: justify;
        }
        
        
        .view .content p
        {
            color: rgb(0, 0, 0);
            font-size: 14px;
            line-height: 24px;
        }
    </style>
    <script>
        function scoll(id) {
            var box = document.getElementById(id);
            var can = true;
            box.innerHTML += box.innerHTML;
            box.onmouseover = function () { can = false };
            box.onmouseout = function () { can = true };
            new function () {
                var stop = box.scrollTop % 18 == 0 && !can;
                var t;
                if (!stop)
                    box.scrollTop == parseInt(box.scrollHeight / 2) ? box.scrollTop = 0 : box.scrollTop++;
                t = setTimeout(arguments.callee, box.scrollTop % 18 ? 10 : 1500);

            };
        }
        $(function () {



            KindEditor.ready(function (K) {

                var options = {
                    cssPath: '/css/index.css',
                    items: ['source', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons', 'image', 'link', 'preview'],
                    uploadJson: '../Scripts/editor/asp.net/upload_json.ashx',
                    fileManagerJson: '../Scripts/editor/asp.net/file_manager_json.ashx',
                    allowFileManager: true,
                     filterMode: true
                };
                window.editor = K.create('#content', options);
            });



            setTimeout(controlARSDiv, 5000);
        }
);
        var arsDiv;
        function controlARSDiv() {
            if (!$('#divAnnouncement_conent').is(":hidden")) {
                showSuggestionDiv();
            }
//            else if (!$('#divReward_content').is(":hidden")) {
//                showSuggestionDiv();
//            }
            else if (!$('#divSuggestion_content').is(":hidden")) {
                showAnnouncementDiv();
            }
            arsDiv = setTimeout(controlARSDiv, 5000);
        }
        function stoparsDiv() {
            clearTimeout(arsDiv);
        }
        function showAnnouncementDiv() {

            $('#divAnnouncement_conent').show();
            $('#AliAnnouncement').css("background", "")
            $('#AliAnnouncement').css("background", "none repeat scroll 0 0 #12B5B0");

//            $('#divReward_content').hide();
            $('#AliReward').css("background", "");
            $('#AliReward').css("background", "none repeat scroll 0 0 rgb(163, 200, 253)");

            $('#divSuggestion_content').hide();
            $('#AliSuggestion').css("background", "");
            $('#AliSuggestion').css("background", "none repeat scroll 0 0 rgb(163, 200, 253)");

        }

        function showRewardDiv() {

//            $('#divReward_content').show();
            $('#AliReward').css("background", "");
            $('#AliReward').css("background", "none repeat scroll 0 0 #12B5B0");

            $('#divAnnouncement_conent').hide();
            $('#AliAnnouncement').css("background", "");
            $('#AliAnnouncement').css("background", "none repeat scroll 0 0 rgb(163, 200, 253);");
            $('#divSuggestion_content').hide();
            $('#AliSuggestion').css("background", "");
            $('#AliSuggestion').css("background", "none repeat scroll 0 0 rgb(163, 200, 253)");
        }

        function showSuggestionDiv() {

            $('#divSuggestion_content').show();
            $('#AliSuggestion').css("background", "");
            $('#AliSuggestion').css("background", "none repeat scroll 0 0 #12B5B0");
            $('#divAnnouncement_conent').hide();
            $('#AliAnnouncement').css("background", "");
            $('#AliAnnouncement').css("background", "none repeat scroll 0 0 rgb(163, 200, 253);");
//            $('#divReward_content').hide();
            $('#AliReward').css("background", "");
            $('#AliReward').css("background", "none repeat scroll 0 0 rgb(163, 200, 253);");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="bjtu">
    </div>
    <!--背景图-->
    <div id="page">
        <div class="main">
            <!--导航-->
            <!--内容-->
            <div class="box">
                <!--cc-->
                <div class="cc">
                    <span class="ctl"></span><span class="ctr"></span>
                    <!--头部-->
                    <UC:top ID="top" runat="server" />
                    <!--categoryleft-->
                    <div class="categoryleft">
                        <UC:lb  ID="lunbo" runat="server"/>
                        <%-- 政策文件--%>
                        <div class="cc_left" style="margin-left: 2px">
                            <div class="category_div margr5" style="margin-top: 35px; min-height: 350px; width: 98%;
                                border: 1px solid rgb(222, 222, 222);">
                                <div style="-moz-border-bottom-colors: none; -moz-border-left-colors: none; -moz-border-right-colors: none;
                                    -moz-border-top-colors: none; border-color: rgb(222, 222, 222); border-image: none;
                                    border-style: solid; border-width: 1px 1px 2px; height: 28px; width: 100%; background-color: rgb(234, 239, 242);">
                                    个人事迹</div>
                                <div class="view">
                                    <h2 id="title" class="detailT">
                                        <asp:Label ID="lbl_Subject" runat="server"></asp:Label></h2>
                                    <div id="time" class="data">
                                        <asp:Label ID="lbl_DateTime" runat="server"></asp:Label></div>
                                    <div id="doccontent" class="content" style="border: 1px solid #ECF4FF; min-height: 250px;">
                                        <p align="center">
                                            <asp:Label ID="lbl_Body" runat="server"></asp:Label>
                                        </p>
                                    </div>
                                </div>
                                <div class="clearit">
                                </div>
                                <div id="divComment" runat="server">
                                    <div class="commenttitle">
                                        <div class="commtext">
                                            评论
                                        </div>
                                    </div>
                                    <asp:Repeater ID="rptCommentList" runat="server" OnItemDataBound="rptCommentList_ItemDataBound">
                                        <ItemTemplate>
                                            <div class="blogdetail" id="div_comment">
                                                <div class="twocclf_info">
                                                    <div class="pinlundesc">
                                                        <asp:Literal ID="commentuserinfo" runat="server"></asp:Literal>
                                                    </div>
                                                    <div class="clearit">
                                                    </div>
                                                    <div class="infotitle">
                                                        <asp:Literal ID="labcommentbody" runat="server"></asp:Literal>
                                                    </div>
                                                </div>
                                                <div class="clearit">
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <FooterTemplate>                                            
                                            <div style="text-align: center; margin-bottom: 10px; margin-top: 10px;">
                                                <asp:Label ID="lblNoRecord" runat="server" Text="暂无记录!" Visible="false"></asp:Label>
                                            </div>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                    <ul class="twocc_page">
                                        <webdiyer:AspNetPager ID="anpOrders" runat="server" FirstPageText="首页" LastPageText="末页"
                                            NextPageText="下页" SubmitButtonText="跳转" OnPageChanged="anpOrders_PageChanged"
                                            PrevPageText="上页" ShowInputBox="Always" PageSize="15" AlwaysShow="True">
                                        </webdiyer:AspNetPager>
                                    </ul>
                                </div>
                                <div runat="server" id="divClientNoSee">
                                    <div class="blog_border">
                                        <div class="pinlunbd_title2">
                                            发表评论</div>
                                        <div id="con2">
                                            <div id="divReply">
                                            </div>
                                            <div id="tags_title">
                                                <ul id="Ul1">
                                                    <li class="selectTag"><a onclick="selectTag('tagContent0',this)" href="javascript:void(0)">
                                                        正文</a> </li>
                                                    <%--<li><a onclick="selectTag('tagContent1',this)" href="javascript:void(0)">预览</a> </li>				--%>
                                                </ul>
                                            </div>
                                            <div id="tagContent">
                                                <div class="tagContent selectTag" id="tagContent0">
                                                    <div class="bianjiqi">
                                                        <textarea id="content" cols="100" rows="8" name="content" style="width: 100%; height: 251px;"
                                                            runat="server"></textarea>
                                                    </div>
                                                    <div class="clearit">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <asp:Button ID="btnClick" runat="server" OnClick="btn_OnClick" Text="发表评论" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--categoryleft-->
                    <!--categoryright-->
                    <div class="categoryright">
                        <div id="divRightWelcome">
                            <script type="text/javascript" src="../Player/ckplayer.js" charset="utf-8"></script>
                            <script type="text/javascript">
                                var flashvars = { f: '../Player/MyDream.flv', c: 0, b: 1, p: 0, e: 0 };
                                var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always' };
                                CKobject.embedSWF('../Player/ckplayer.swf', 'divRightWelcome', 'ckplayer_a1', '290', '230', flashvars, params);
                                /* CKobject.embedSWF(播放器路径,容器id,播放器id/name,播放器宽,播放器高,flashvars的值,其它定义也可省略); 下面三行是调用html5播放器用到的 */
                                var video = ['../Player/MyDream.flv-&gt;flv-application/octet-stream'];
                                var support = ['iPad', 'iPhone', 'ios', 'android+false', 'msie10+false', 'webKit'];
                                CKobject.embedHTML5('video', 'ckplayer_a1', 600, 400, video, flashvars, support); 
                            </script>
                        </div>
                        <div class="forum_div" style="margin-top: 23px; display: none;">
                            <div class="forum_title">
                                <ul id="tags">
                                    <li id="liAnnouncement" onclick="stoparsDiv();showAnnouncementDiv()"><a id="AliAnnouncement"
                                        style="background: none repeat scroll 0 0 #12B5B0">通知</a> </li>
                                    <%--<li id="liReward" onclick="stoparsDiv();showRewardDiv()"><a id="AliReward">规则与奖励</a>
                                    </li>--%>
                                    <li id="liSuggestion" onclick="stoparsDiv();showSuggestionDiv()"><a id="AliSuggestion">
                                        意见箱</a> </li>
                                </ul>
                            </div>
                            <div class="forum_info" style="display: none">
                                <div id="divAnnouncement_conent" runat="server" class="shell2" style="overflow-y: auto;
                                    overflow-x: hidden; height: 215px;">
                                    <div style=" display:flex;">网站公告，请<a href="http://www.shangshanruoshui.cc/BBS/ThreadInfo.aspx?tId=B9B50B9AFCED1D737EF60489CAC78BFE67EF04554EC5E4EF"><span style="color:Red;">猛戳这里</span></a>查看</div>
                                </div>
                                <%--<div id="divReward_content" runat="server" class="shell2" style="overflow-y: auto;
                                    overflow-x: hidden; height: 215px; display: none;">
                                    奖励内容
                                </div>--%>
                                <div id="divSuggestion_content" runat="server" class="shell2" style="overflow-y: auto;
                                    overflow-x: hidden; height: 215px; display: none;">
                                    <div style=" display:flex;">大家有什么意见，请<a href="http://www.shangshanruoshui.cc/BBS/ThreadInfo.aspx?tId=6547FF5FDEFEE06FD410E406EDE3249A335DB90CE42491B7"><span style="color:Red;">猛戳这里</span></a></div>
                                </div>
                            </div>
                        </div>
                        <!--categoryright-->
                        <!--版权-->
                        <!--版权-->
                        <span class="cbl"></span><span class="cbr"></span>
                    </div>
                    <UC:footer ID="footer" runat="server" />
                    <%-- <div class="footer">
                        <a href="mailTo:123@123.COM">联系我们</a>|
                       <a id="pp" target="_blank" runat="server">隐私声明</a>|
                      <a id="tc" target="_blank" runat="server">条款与条件</a>| 
                      <a id="help" target="_blank" runat="server">帮助</a>
                     </div>--%>
                    <!--cc-->
                    <span class="cbl"></span><span class="cbr"></span>
                    <asp:HiddenField ID="hf_PaperId" runat="server" />
                </div>
            </div>
            <span class="bl"></span>
            <div class="bc">
            </div>
            <span class="br"></span>
            <!--box-->
        </div>
        <!--main-->
    </div>
    </form>
</body>
</html>
